﻿<%@ Control Language="C#" %>
<%@ Register src="../module/Admincenter-Menu.ascx" tagname="Menu" tagprefix="inal" %>
<script runat="server">
    private int cid = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Item_Lang == 1)
            Item_Lang = Utils.GetQueryString("lang", 0);
        Types types = new Types();
        Repeater_List.DataSource = types.List(0, Cid, Item_Lang);
        Repeater_List.DataBind();
    }
    public int Cid
    {
        get { return cid; }
        set { cid = value; }
    }

    private int item_lang = 1;
    public int Item_Lang
    {
        get { return item_lang; }
        set { item_lang = value; }
    }
</script>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
<div>
<h4><%#Eval("Name") %> <a href="Menu-Add.aspx?typ=3&cid=<%#Eval("id") %>&lang=<%=Item_Lang %>" id="MenuAdd" class="MenuAddSmall"><span><%=Lang.Show("Link") %> - <%=Lang.Show("ItemAdd") %></span></a>  </h4>
<inal:Menu runat="server" Item_Typ="3" Cid='<%#Utils.ToInt(Container.DataItem,"Id")%>'  />
<div class="ch10"></div>
</ItemTemplate>
</asp:Repeater>
